package com.cdxy.dmr.mapper;

import com.cdxy.dmr.dataObject.PayOrderDO;
import com.cdxy.model.dto.base.mybatis.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author autoGenCode
 * @since 2020-04-07
 */
public interface PayOrderMapper extends BaseMapper<PayOrderDO> {
    /**
     * 根据订单号和原状态更新订单状态
     *
     * @param newStatus
     * @param bizNo
     * @param curStatus
     * @return
     */
    boolean updateStatusByOrderNoAndOldStatus(@Param("newStatus") String newStatus, @Param("bizNo") String bizNo, @Param("curStatus") String curStatus);

    /**
     * 更新订单状态
     *
     * @param ids
     * @param status
     */
    void updateStatusByIdBatch(@Param("ids") List<Integer> ids, @Param("status") String status);

}
